package top.letscode.study.disconf.config;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Service;

/**
 * @Author: zhengzhq
 * @Date: 2019-08-30 15:35
 * @Description: Redis公共配置
 */
@Service
@DisconfFile(filename = "redis.properties")
public class RedisConfig {

    // 主机ip
    private String host;

    // 端口
    private String port;

    @DisconfFileItem(name = "redis.host")
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    @DisconfFileItem(name = "redis.port")
    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
